﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using OZDoo.Core.Exceptions;

namespace OZDoo.Components
{
    /// <summary>
    /// 基础支持组件工厂
    /// </summary>
    public class ComponentsFactory
    {
        /// <summary>
        /// 获取语言组件
        /// </summary>
        /// <returns></returns>
        public ILanguage GetLanguage()
        {
            ILanguage lang = Language.Instance();
            if (lang == null) throw new OzdException("Language Components Init Error");
            return lang;
        }

        /// <summary>
        /// 获取会员组件
        /// </summary>
        /// <returns></returns>
        public IMembers GetMembers()
        {
            return null;
        }
    }
}
